_src = function (lua_file)
   assert(type(lua_file) == "string", "not a string")
   return require ("src.gen."..lua_file)
end

_lib = function (lib)
   assert(type(lib) == "string", "not a string")
   return require ("lib." .. lib)
end

_ui = function (ui)
   assert(type(ui) == "string", "not a string")
   return require ("ui." .. ui)
end

_units = function (name)
   assert(type(name) == "string", "not a string")
   return require ("src.units." .. name)
end

_cond = function (t)
   for _, v in ipairs(t) do
      local s, f = v[1], v[2]
      if s == "else" then f(); return end
      if assert(loadstring("return" .. " " .. s))() then f(); return end
   end
end

_match = function (val, t)
	for _, v in ipairs(t) do
		if val == v[1] then v[2]() end
	end
end

_lg = love.graphics
_li = love.image
_lk = love.keyboard
_lm = love.mouse
_lf = love.filesystem
_lw = love.window
_lt = love.timer
_lmath = love.math

